#pragma once

#include <QDialog>
#include "ui_AcquireDialog.h"
#include "Config.h"
#include "UiCommon.h"

class AcquireDialog : public QDialog
{
    Q_OBJECT

public:
    AcquireDialog(QWidget *parent = Q_NULLPTR);
    ~AcquireDialog();
    
    void setUSB9982(Param_USB9982 param);
    Param_USB9982 USB9982();

protected slots:
    void on_comboChnNum_currentIndexChanged(int index);
    void on_comboTrigger_currentIndexChanged(int index);
    void on_btnTrigLenMax_clicked();

private:
    void uiToParam();
    void paramToUi();

    virtual void accept();
    virtual void reject();

    Param_USB9982 usb9982;

    Ui::AcquireDialog ui;
};